import path from "path/posix"
import type { DeepRequired } from "../../types"
import type { CONFIG } from "../../types/config"
import { CWD, pkg } from "../uitls"

export function createDefaultOptionsFactory () {
  return {
    theme: {
      title: pkg.name,
      favicon: '',
      logo: '',
    },
    root: CWD,
    componentRoot: 'components',
    useConfigFile: true,
    devServer: {
      port: 9090
    }
  }
}

export const defaultVmiConfig: DeepRequired<CONFIG> = createDefaultOptionsFactory()

